module.exports = async (fastify, opts) => {
  fastify.get(
    '/',
    {
      schema: {
        query: {
          limit: { type: 'integer' },
          skip: { type: 'integer' },
        },
      },
    },
    async (request, reply) => {
      const data = await fastify.invokeCloudFunction(
        'list-video',
        request.query
      )
      reply.send(data)
    }
  )
}
